﻿<%@ Page Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="DC_InvestDiscipline.aspx.cs" Inherits="KPIS.GERP.GHRMS.APP.App_UI.Forms.DC_InvestDiscipline" %>

<%@ Register src="../Controls/user.ascx" tagname="user" tagprefix="uc4" %>

<asp:Content ID="Content1" runat="server" contentplaceholderid="ContentPlaceHolder1">  

 <script type="text/javascript" src="../../Scripts/DatePicker.js"></script>
    <script src="../../Resources/Scripts/jsfunction.js"></script>
    <script src="../../Scripts/jsfunction.js"></script>
   <script type="text/javascript">
       function openProjectDetails(id) {
           radopen("DC_InvestDisciplinePopup.aspx?id=" + id, "ProjectDtls");
           return false;
       }
       function onTextChange(sender) {
           if (sender.get_value() == "") {
               sender.set_text("");
           }
       } 
        
</script>
      
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid2">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid2" 
                        LoadingPanelID="RadAjaxLoadingPanel2" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

       <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel2" runat="server">
    </telerik:RadAjaxLoadingPanel>    
    
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
    <Windows>
        <telerik:RadWindow 
            id="ProjectDtls" 
            runat="server"
            showcontentduringload="false"
            VisibleStatusbar="false"
            title="ข้อมูลผู้ถูกสอบสวนทางวินัย"
            width="950px"
            Height="600px" 
            Skin = "Vista"       
            Modal="true"
            behaviors="Close">
        </telerik:RadWindow>
    </Windows>

</telerik:RadWindowManager>
    
    <title></title>
    <link href="../../Styles/CssClass.css" rel="stylesheet" type="text/css" /> 

    
      <asp:panel ID="Panel6" runat="server" >
    <table width="1000" cellpadding="0" cellspacing="0">
        <tr>
            <td width="280" valign = "top">
               <!-- <uc4:user ID="user1" runat="server" /> -->
            </td>
            
              <td width="20" ></td>
            
            <td>
            
            <%--<div class="moduleDivSlim700">
                    <div class="moduleDivBottom700">
                         <asp:Panel ID="PanelFilter" runat="server" Width="700px" ScrollBars="Auto">
                            <table align = "center" width = "650px">
                                    <tr>
                                        <td  >
                                            &nbsp;</td>
                                        <td>
                                            &nbsp;</td>
                                        
                                       <td>
                                            &nbsp;</td>
                                    </tr>
                                </table>
                        </asp:Panel>
                    </div>
                </div>--%>
            
            
            </td>
            
          </tr>
          </table>
          

          <td>

          </td>
          
          
          </tr>
          
        <td colspan = "3">
        <div class="moduleDivSlim1000x450">
        <div class="moduleDivBottom1000">
        <table align="center" width ="950px" >
        <tr>
            <td align="left" class="tableHeader">
                ข้อมูลการสอบสวนทางวินัย</td>
        </tr>
        </table>
        <table width ="950px" align = "center">
        <tr>
        <td >
            <asp:Panel ID="PanelGrid" width ="950px" Height="400px" runat="server" ScrollBars="Auto" >
                <telerik:RadGrid ID="RadGrid2" runat="server" 
                    AllowFilteringByColumn="True" 
                    AllowAutomaticDeletes="True"
                    AllowMultiRowEdit="True" 
                    AllowMultiRowSelection="True" AllowPaging="True" 
                    AllowSorting="True" 
                    AutoGenerateColumns="False" EnableAJAX="True" 
                    EnableAJAXLoadingTemplate="True" GridLines="None" 
                    OnItemCommand="RadGrid2_ItemCommand" Skin="Outlook" Width="930px" 
                    onitemdatabound="RadGrid2_ItemDataBound" 
                    onneeddatasource="RadGrid2_NeedDataSource">
                    <MasterTableView AllowMultiColumnSorting="True" CellSpacing="-1" 
                        ClientDataKeyNames="inv_seq" CommandItemDisplay="Top" DataKeyNames="inv_seq" 
                        InsertItemPageIndexAction="ShowItemOnCurrentPage" 
                        NoMasterRecordsText="&lt; ไม่มีข้อมูล &gt;">
                        <CommandItemTemplate>
                            <table width="100%">
                                <tr>
                                    <td>
                                        <asp:LinkButton ID="cmdAddNew" runat="server" CausesValidation="False" 
                                            CommandName="InitInsert" 
                                            Visible="<%# !RadGrid2.MasterTableView.IsItemInserted && RadGrid2.EditIndexes.Count <= 0 %>"> <img alt="" src="../Images/Buttons/AddRecord.gif" 
                                            style="border: 0px; vertical-align: middle;" /> เพิ่มข้อมูลการสอบสวนทางวินัย</asp:LinkButton>
                                        &nbsp;&nbsp;
                                    </td>
                                    <td align="right">
                                    </td>
                                </tr>
                            </table>
                        </CommandItemTemplate>
                        <RowIndicatorColumn>
                            <HeaderStyle Width="20px" />
                        </RowIndicatorColumn>
  
                        <ExpandCollapseColumn Visible="True">
                        </ExpandCollapseColumn>
                        
                        <Columns>
                            <telerik:GridEditCommandColumn ButtonType="ImageButton" 
                                EditText="คลิกเพื่อแก้ไขข้อมูล">
                                 <HeaderStyle HorizontalAlign="Center" Width="30px" />
                                <ItemStyle HorizontalAlign="Center" />
                            </telerik:GridEditCommandColumn>
                            <telerik:GridButtonColumn ButtonType="ImageButton" 
                                CommandName="Delete" 
                                ConfirmDialogType="RadWindow" ConfirmText="ลบข้อมูลที่เลือก?" 
                                Text="คลิกเพื่อลบข้อมูล" UniqueName="column1">
                                <HeaderStyle HorizontalAlign="Center" Width="30px" />
                                <ItemStyle HorizontalAlign="Center" />
                            </telerik:GridButtonColumn>
                            <telerik:GridBoundColumn      
                                AutoPostBackOnFilter="true" 
                                ShowFilterIcon="false" 
                                CurrentFilterFunction="Contains" 
                                DataField="inv_ref_no"
                                FilterControlWidth="100%" 
                                HeaderStyle-HorizontalAlign="Center" 
                                UniqueName = "inv_ref_no"
                                HeaderText="คำสั่งเลขที่" >
                                <HeaderStyle HorizontalAlign="Center" Width="100px" />
                                <ItemStyle HorizontalAlign="Center"  />
                            </telerik:GridBoundColumn>
                           <telerik:GridBoundColumn             
                                AutoPostBackOnFilter="true" ShowFilterIcon="false" 
                                CurrentFilterFunction="Contains" DataField="inv_date"
                                FilterControlWidth="100%" 
                                HeaderStyle-HorizontalAlign="Center" 
                                HeaderText="ลงวันที่" 
                                DataFormatString = "{0:dd/MM/yyyy}" >
                                <HeaderStyle HorizontalAlign="Center" Width="100px" />
                                <ItemStyle HorizontalAlign="Center"  />
                            </telerik:GridBoundColumn>
                           <telerik:GridTemplateColumn AutoPostBackOnFilter="true" ShowFilterIcon="false" 
                                CurrentFilterFunction="Contains" DataField="inv_name" FilterControlWidth="100%" 
                                HeaderStyle-HorizontalAlign="Center" HeaderText="เรื่อง" >
                                <HeaderStyle HorizontalAlign="Center" />                               
                                <ItemTemplate>   
                                    <asp:LinkButton ID="targetControl" runat="server" 
                                        Text='<%# Eval("inv_name") %>' 
                                        OnClientClick='<%# Eval("inv_seq","Javascript:return openProjectDetails({0})") %>'>
                                    </asp:LinkButton>
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>            
                            <telerik:GridBoundColumn AutoPostBackOnFilter="true" ShowFilterIcon="false" 
                                CurrentFilterFunction="Contains" DataField="appeals" FilterControlWidth="100%" 
                                HeaderText="การยื่นอุทธรณ์"  UniqueName="appeals">
                                <HeaderStyle HorizontalAlign="Center" Width="100px" />
                                <ItemStyle HorizontalAlign="Center"  />
                            </telerik:GridBoundColumn>
                        </Columns>
                        <EditFormSettings EditFormType="WebUserControl"  
                            UserControlName="../UserControls/DC_InvestDiscipline.ascx">
                            <EditColumn UniqueName="EditCommandColumn1">
                            </EditColumn>
                        </EditFormSettings>
                        <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                    </MasterTableView>
                    <ClientSettings AllowColumnHide="True" AllowColumnsReorder="True" 
                        EnableRowHoverStyle="True" ReorderColumnsOnClient="True">
                        <Selecting AllowRowSelect="True" EnableDragToSelectRows="true" />
                    </ClientSettings>
                </telerik:RadGrid>
            </asp:Panel>
        </td>
        </tr>
        </table>
        </div>
</div>
</td>
</tr>

</asp:panel>

</asp:Content>
